import React, { Component } from "react";
import { DatePicker } from "antd";
import "antd/dist/antd.min.css";

export default class App extends Component {
  render() {
    const onChange = (date, dateString) => {
      console.log(date, dateString);
    };

    const { RangePicker } = DatePicker;

    return (
      <>
        <DatePicker onChange={onChange} />
        <RangePicker />
      </>
    );
  }
}
